package com.hopes.bizz.poll.alarm.dto;

import com.hopes.bizz.poll.alarm.entity.PollAlarmEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/5/30 13:37
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PollAlarmDTO extends PollAlarmEntity {
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 监控类型
     */
    private String monitorType;

    /**
     * 站点大类
     */
    @Schema(description="站点大类")
    private Integer monitorTypeMain;

    /**
     * 所属乡镇
     */
    private Long town;
}
